package engine;

import java.util.ArrayList;

public class Constraint {
    private ArrayList<Double> bornesInf;
    private ArrayList<Double> bornesSup;
    private ArrayList<Equation> equations;
    
    public Constraint(ArrayList<Double> _bornesInf,
                      ArrayList<Double> _bornesSup,
                      ArrayList<Equation> _equations){
        
        this.bornesInf = _bornesInf;
        this.bornesSup = _bornesSup;
        this.equations = _equations;
    }

    public ArrayList<Double> getBornesInf() {
        return bornesInf;
    }

    public ArrayList<Double> getBornesSup() {
        return bornesSup;
    }

    public ArrayList<Equation> getEquations() {
        return equations;
    }
    
    @Override
    public String toString() {
        String toPrint = "";
        
        for(Equation eq : equations) toPrint += eq + "\n";
        
        toPrint += "(";
        for(Double b : bornesInf) toPrint += b + ";";
        toPrint += ") , (";
        for(Double b : bornesSup) toPrint += b + ";";
        toPrint += ")";
        
        return toPrint;
    }
    
    
}
